package com.youkeda.kafka.study.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;

public class Student implements Serializable {
    private static final long serialVersionUID = 8650900359291182992L;

    // 姓名
    private String name;

    // 学习日期
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private LocalDate stdudyDate;

    // 当天学习时长，单位：秒
    private int duration;

    // 当天学习节数
    private int sections;

    // 当天代码行数
    private int codeRows;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public LocalDate getStdudyDate() {
        return stdudyDate;
    }

    public void setStdudyDate(LocalDate stdudyDate) {
        this.stdudyDate = stdudyDate;
    }

    public int getDuration() {
        return duration;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }

    public int getSections() {
        return sections;
    }

    public void setSections(int sections) {
        this.sections = sections;
    }

    public int getCodeRows() {
        return codeRows;
    }

    public void setCodeRows(int codeRows) {
        this.codeRows = codeRows;
    }
}
